package test.springmvc;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PatchMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/delete")
public class Login {
    @RequestMapping(value="/login")
    public String login(String username,String pwd){
        System.out.println(username+"    "+pwd);
        return "login";
    }

    @RequestMapping(value = "/*/peipei")
    public String peipei(){
        System.out.println("=================");
        return "login";
    }
    @RequestMapping(value = "/{id}/{username}/login")
    public String delete(@PathVariable(value = "id") Integer id,@PathVariable(value = "username") String username){
        System.out.println(id+"    "+username);
        return "login";

    }
}
